# 函数语法

# def  函数名（）：
#  业务

def add_up_to(stat,sop,set=1):
        result = 0
        for i in range(stat,sop,set):
            result = result + i
        print(f'他们的和为：{result}')

def exact_division():
    # 能被X整除，又能被Y整除，这些数形成一个列表
    result = []
    for i in range(1, 101):
        if i%3==0 and i%5!=0:
            result.append(i)
    print(f'他们为：{result}')

def Carry_water():
    count = 0
    for i in range(0, 50, 4):
        if i <= 50 - 15:
            count = count + 1
    print(f'需要：{count}次挑满')


# 调用
# add_up_to(2,50,4)
s=0
for i in range(1,101):
    # print(i)
    s=s+i
print(s)

